<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/11/29/029
 * Time: 16:58
 */

namespace app\api\model;


class ShopCategory extends BaseModel {
    protected $hidden = ['update_time','delete_time', 'create_time'];

    public function shop() {
        return $this->hasOne('Shop');
    }

    public function category() {
        return $this->belongsTo('Category');
    }
}